package com.eascs.fp.common.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

public class BaseQueryVO implements Serializable {
	private static final long	serialVersionUID	= 9114174179657783463L;

	public final static String	ASC					= "asc";
	public final static String	DESC				= "desc";

	private String				id;

	private int					pageSize			= 10;					// 每页显示数量

	private int					showPage			= 0;					// 当前页码

	private String				order				= null;					// 排序方向

	private String				orderby				= null;					// 设置排序字段，多个字段用','分割

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_time")
	private Date				createTime;									// 创建时间

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="update_time")
	private Date				updateTime;									// 更新时间

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getShowPage() {
		return showPage;
	}

	public void setShowPage(int showPage) {
		this.showPage = showPage;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getOrderby() {
		return orderby;
	}

	public void setOrderby(String orderby) {
		this.orderby = orderby;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}
